package com.znsd.zl.order.feign;

import com.znsd.zl.order.entity.ContractEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @ClassName ContractFeignFallback
 * @Description TODO
 * @Author zhubin
 * @Date 2020/8/31 21:36
 * @Version v1.0
 */
@Component
@Slf4j
public class ContractFeignFallback implements ContractFeign {
	@Override
	public Integer add(ContractEntity contractEntity) {
		log.error("通过feign调用生成合同方法报错，触发了order 中的 contractFeign的服务降级");
		return -1;
	}
}
